﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace View.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        public ActionResult Index()
        {
            string[] str = new string[]{"Apple","Microsoft","Google"};
            return View(str);
        }

        public ActionResult List()
        {
            //Partial
            return View();
        }
        [ChildActionOnly]
        public ActionResult Time()
        {
            return PartialView(DateTime.Now);
        }

        public string Edit()
        {
            return "<h2>the page is  Edit</h2>";
        }
    }
}